package com.hq.door.dto.demo;

import java.util.ArrayList;
import java.util.List;

public abstract class AbstractDTOGenerator implements IDTOGenerator {

	public List generateDTOList(List list,Selectors selectors){
		List returnList = new ArrayList(list.size());
		for (int i = 0,n=list.size(); i < n; i++) {
			Object obj = list.get(i);
			returnList.add(generateDTO(obj,selectors));
		}
		return returnList;
	}
	
	public List generateDTOList(List list){
		List returnList = new ArrayList(list.size());
		for (int i = 0,n=list.size(); i < n; i++) {
			Object obj = list.get(i);
			returnList.add(generateDTO(obj));
		}
		return returnList;
	}
	
}
